package com.explorex.infra.puma.gateway.netty.rrmp;


import com.explorex.infra.puma.gateway.netty.common.AbstractBaseServer;

/**
 * @author: JacceYang
 * @createTime: 2022/09/06 19:44
 * @description: rrmp protocal event
 */
public interface RTcpSocketEvent {

    void onOpenEvent(AbstractBaseServer server, RTcpSession session);

    /**
     * onCloseEvent
     *
     * @param server
     * @param session
     */
    void onCloseEvent(AbstractBaseServer server, RTcpSession session);

    /**
     * on Error Event
     *
     * @param session
     */
    void OnErrorEvent(RTcpSession session);

    /**
     * onMessageBinaryEvent
     *
     * @param server
     * @param session
     * @param msg
     */
    void onMessageEvent(AbstractBaseServer server, RTcpSession session, RrmpMessage msg);
}
